/*
 * File:   Model1Test.cpp
 * Author: Guilherme Monteiro
 *
 */

#include "Model1Test.h"

CPPUNIT_TEST_SUITE_REGISTRATION(Model1Test);

Model1Test::Model1Test() {
}

Model1Test::~Model1Test() {
}

void Model1Test::setUp() {
}

void Model1Test::tearDown() {
}

void Model1Test::testModel1() {
    double EPSILON = 0.01;
    
    Model1* model1 = new Model1();
    
    if ( !(strcmp(model1->getModelName().c_str(), MODEL1_NAME) == 0) ) {  
        CPPUNIT_ASSERT(false);
    }
    
    if ( !(fabs(model1->getTAX_RELATIVE_TO_MINIMUM_VERTICAL()- 0.1 ) < EPSILON )) {
        CPPUNIT_ASSERT(false);
    }
    
    if ( !(fabs(model1->getTAX_RELATIVE_TO_MINIMUM_HORIZONTAL() - 0.3 ) < EPSILON )) {
        CPPUNIT_ASSERT(false);    
    }
        
}

